Logging Props in React
Sometimes using React devtools feels so slow. What i tend to do is to just log the propsin JSON format while working on the component with this:
<pre>{process.env.NODE_ENV === 'development' && JSON.stringify(state, null, 2)}</pre>
You can also get this and more from npm library that logs stuff to dom